/*
============================================================================
 Name        : Id3v1Tag.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : CId3v1Tag declaration
============================================================================
*/

#ifndef __ID3V1TAG_H__
#define __ID3V1TAG_H__

// INCLUDES
#include <e32std.h>
#include <e32base.h>

const TInt KTagBufLen = 128;

const TInt KErrNoMetada = -0x0100;

// CLASS DECLARATION
class CId3v1Tag : public CBase
{
public: // Constructors and destructor
	~CId3v1Tag();
	static CId3v1Tag* NewL(const TDesC& aFileName);
	static CId3v1Tag* NewLC(const TDesC& aFileName);


private:
	CId3v1Tag();
	void ConstructL(const TDesC& aFileName);
	void DoConstructL(const TDesC& aFileName);
	HBufC* ReadL(TBuf8<KTagBufLen> aBuf, TInt aLength);


public: //data
	HBufC* iTitle;
	HBufC* iArtist;
	HBufC* iAlbum;

	TInt iPos;
};

#endif // __ID3V1TAG_H__
